<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: WHH
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<h1>用户表格</h1>
<body>
<%
    List<String> user = new ArrayList<String>();
    user.add("田子夜");
    user.add("孙潇涵");
    user.add("王辉煌");
    request.setAttribute("user",user);
%>
<table border="1" width="60">
    <c:forEach items="${requestScope.user}" var="str">
        <tr>
            <td>
                ${str}
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
